
package org.apache.osgimaker.analyse.algorithm.classfile;

/**
 * Constant representing a <tt>double</tt> value.
 * 
 */
public class DoubleConstant extends Constant {
  private final double _value;

  /** Creates an instance for the specified double value. */
  public DoubleConstant(Constant[] pool, double value) {
    super(pool);
    _value = value;
  }

  /** Returns the wrapped double value. */
  public double getValue() {
    return _value;
  }

  /** Returns the constant type and the double value. */
  public String toString() {
    return "CONSTANT_Double: " + _value;
  }
} //class